#! /usr/bin/ruby

a = []
file = File.open('new-inventory.txt')
while (b=file.gets)
	a.push(b)
end
file.close
puts a
puts "--------------------------------------"
File.open('new-inventory.txt') do |filename|
	while row = filename.gets
	puts row
	end
end

puts "--------------------------------------"
puts File.open('new-inventory.txt').readlines
